import random

print("你好，清输入你的名字？")
name = input()
up = 100
number = random.randint(1, up)
print("你好%s，我想的数字是 1-%s之间." % (name, up))
success = False
for i in range(6):
    guess = input()
    guess_num = int(guess)
    if guess_num == number:
        success = True
        print("太棒了，你猜对了。")
        break
    if guess_num > number:
        print("不对，大了")
    if guess_num < number:
        print("不对，小了")
    i = i + 1
if not success:
    print("很遗憾，你没猜对")
